﻿<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
  <Module Name="CustomActions">
  </Module>
  <CustomAction Id="Custom.Configuration.ListCustomSettings"
              GroupId="Permissions"
              Location="Microsoft.SharePoint.ListEdit"
              RequireSiteAdministrator="FALSE"
              Sequence="100"
              Title="Column Permissions">
    <UrlAction Url="_layouts/SharePointListSecurity/ListColumnPermissions.aspx?List={ListId}" />
  </CustomAction>

  <CustomAction
 Id="Custom.Configuration.ListCustomButton"
 Location="CommandUI.Ribbon.ListView"
 RegistrationType="ContentType"
 RegistrationId="0x"
  Sequence="100">
    <CommandUIExtension>
      <CommandUIDefinitions>
        <CommandUIDefinition Location="Ribbon.List.Settings.Controls._children">
          <Button
              Id="ListSettingButton.Ribbon"
              Alt="List Column Permissions"
              Sequence="100"
              Command="{2AC91084-6204-44E0-9E1E-FB4E4D240352}"
              Image32by32="/_layouts/images/SharePointListSecurity/ColumnPermissions.png"
              Image16by16="/_layouts/images/SharePointListSecurity/ColumnPermissions_16x16.png"
              LabelText="Column Permissions"
              TemplateAlias="o2" />
        </CommandUIDefinition>
      </CommandUIDefinitions>
      <CommandUIHandlers>
        <CommandUIHandler Command="{2AC91084-6204-44E0-9E1E-FB4E4D240352}" CommandAction="~site/_layouts/SharePointListSecurity/ListColumnPermissions.aspx?List={ListId}" />
      </CommandUIHandlers>
    </CommandUIExtension>
  </CustomAction>
</Elements>